import Home from "../views/layouts/Home/Home";

export default [
  {
    path: "/",
    redirect: "/home",
    component: () =>
    import(/* webpackChunkName: "home" */ "../views/layouts/layouts"),
    children: [
      {
        path: "home",
        name: "Home",
        meta: {
          title: "云上到家",
          isKeepAlive: true
        },
        component: Home
      },
      {
        path: "login",
        name: "Login",
        meta: {
          title: "登录",
          isKeepAlive: false
        },
        component: () => import("../views/layouts/login/index")
      },
      {
        path: "inventory",
        name: "Inventory",
        meta: {
          title: "配送清单",
        },
        component: () => import("../views/layouts/Home/inventory")
      },
      {
        path: "my",
        name: "My",
        meta: {
          title: "我的",
          isKeepAlive: false
        },
        component: () => import("../views/layouts/my/index")
      },
      {
        path: "menu",
        name: "menu",
        meta: {
          title: "菜单",
          isKeepAlive: false
        },
        component: () => import("../views/layouts/menu/index")
      },
      {
        path: "goodDetail",
        name: "GoodDetail",
        meta: {
          title: "商品详情",
          isKeepAlive: false
        },
        component: () => import("../views/layouts/menu/goodDetail")
      },
      {
        path: "orderDetail",
        name: "OrderDetail",
        meta: {
          title: "详情",
          isKeepAlive: false
        },
        component: () => import("../views/layouts/order/detail")
      },
      {
        path: "refund",
        name: "Refund",
        meta: {
          title: "发起退款",
          isKeepAlive: false
        },
        component: () => import("../views/layouts/order/refund")
      },
      {
        path: "search",
        name: "Search",
        meta: {
          title: "搜索",
          isKeepAlive: false
        },
        component: () => import("../views/layouts/my/search")
      },
      {
        path: "account",
        name: "Account",
        meta: {
          title: "账户信息",
          isKeepAlive: false
        },
        component: () => import("../views/layouts/my/account")
      },
      {
        path: "set",
        name: "Set",
        meta: {
          title: "系统设置",
          isKeepAlive: false
        },
        component: () => import("../views/layouts/my/set")
      },
      {
        path: "bill",
        name: "Bill",
        meta: {
          title: "账单管理",
          isKeepAlive: true
        },
        component: () => import("../views/layouts/my/bill")
      },
      {
        path: "billDetail",
        name: "BillDetail",
        meta: {
          title: "账户详情",
          isKeepAlive: false
        },
        component: () => import("../views/layouts/my/billDetail")
      },
      {
        path: "refundList",
        name: "RefundList",
        meta: {
          title: "退款明细",
          isKeepAlive: false
        },
        component: () => import("../views/layouts/my/refundList")
      },
      {
        path: "refundDetail",
        name: "RefundDetail",
        meta: {
          title: "退款详情",
          isKeepAlive: false
        },
        component: () => import("../views/layouts/my/refundDetail")
      },
      {
        path: "privacy",
        name: "Privacy",
        meta: {
          title: "隐私政策",
          isKeepAlive: false
        },
        component: () => import("../views/layouts/text/privacy")
      },
      {
        path: "agreement",
        name: "Agreement",
        meta: {
          title: "用户协议",
          isKeepAlive: false
        },
        component: () => import("../views/layouts/text/agreement")
      },
    ]
  }
];
